This is a pet peeve of mine: When we call
g_test_init() before handling --generate,
the random seed spew pollutes the output.
Highly annoying. I've fixes many test binaries
over the years, but more keep popping up.
{
gboolean success;
- gtk_test_init (&argc, &argv);
-
if (argc < 2)
{
const char *basedir;
GFile *dir;
+ gtk_test_init (&argc, &argv);
+
basedir = g_test_get_dir (G_TEST_DIST);
dir = g_file_new_for_path (basedir);
success = test_files_in_directory (dir);
{
GFile *file = g_file_new_for_commandline_arg (argv[2]);
+ gtk_init ();
+
success = parse_node_file (file, TRUE);
g_object_unref (file);
{
guint i;
+ gtk_test_init (&argc, &argv);
+
success = TRUE;
for (i = 1; i < argc; i++)